// @ 表示 /src
import request from "@/utils/request";
request
  .get("/db.json")
  .then(res => {
    console.log("get1", res.data);
  })
  .catch(error => {
    console.log(error);
  });
request({
  methods: "get",
  url: "/db.json"
}).then(res => {
  console.log("get2", res.data);
  console.log(process.env.VUE_APP_BASE_API)
});
// 导出默认对象
export default {
  getList() {
    const req = request({
      methods: "get",
      //这里的api前缀代表http://localhost:8001
      url: "/db.json"
    });
    return req;
  }
};